#ifndef ITLOGGER_H
#define ITLOGGER_H

#include "commdef.h"

class ITFramework;
class ITLogger : public QObject
{
public:
    ITLogger(){}
    virtual ~ITLogger(){}
    virtual TRESULT Init() TPURE;
    virtual TRESULT UnInit(int nTime=1000) TPURE;
    virtual TRESULT SetFramework(ITFramework *pFrm) TPURE;
    virtual TRESULT WriteLog(const char *szLog, int level=0) TPURE;
    virtual TRESULT WriteMemory(const char *userId, int M) TPURE;
    virtual TRESULT WriteUserSign(const char *userId, bool bIsSign) TPURE;
    virtual TRESULT ClearUserSign() TPURE;
    virtual TRESULT GetMemory() TPURE;
    virtual TRESULT CollectData(int nEventId, char *userId=NULL, char *username=NULL) TPURE;
};

#endif // ITLOGGER_H
